package permissions

import (
	"context"
	"goAdminV1/api/permissions/v1"
	"goAdminV1/internal/model"
	"goAdminV1/utility"
)

func (c *ControllerV1) JobUpdate(ctx context.Context, req *v1.JobUpdateReq) (res *v1.JobUpdateRes, err error) {

	err = model.UpdateJob(ctx, req)
	if err != nil {
		return nil, utility.Error(utility.CodeOperation, err)
	}
	return &v1.JobUpdateRes{
		Message: "岗位信息更新成功",
	}, nil
}
